//元组
let arr: [number, string, boolean] = [1,'23', true]
//其他类型数组
let arr1: string[] = [ 'sd ']
let arr2: number[] = [1,2,3]
let arr3 : boolean[] =[true, false]
let arr4 : {
name : string;age:number;
}[]= [
{
name: "123",age: 18
},
{
name: "123",age: 18
},
]
let str: string = ''

let fun =(can:number,can2: number): number =>{
    return can + can2
    }
    let bol:boolean = true
    let num: number = 123
    let obj:{
    a: string}={a: "asas"}

    let newArr: number[] =[11,12,23,4534,46546,123,11,565]
    let newArr1 :number[]=[]
    newArr.forEach((item: number, index: number)=>{
    if(!newArr1.includes(item)){
    newArr1.push(item)
    
    }}
    )
    
console.log(newArr1);

